<template>
  <div class="selectTime">
      <el-time-picker
        v-model="selectTime"
        value-format="HH:mm"
        format="HH:mm"
        @change="selectOk"
        :placeholder="placeholder">
      </el-time-picker>
  </div>
</template>

<script>
export default {
  props: {
    placeholder: String
  },
    data() {
        return {
            selectTime: ''
        }
    },
    methods: {
      selectOk(e) {
        console.log(e)
        this.$emit('change', e)
      },
      init() {
        this.selectTime = ''
      }
    }
}
</script>

<style>

</style>